Name: mos-identify
Version: 2.1
Release: alt1
Summary(ru_RU.UTF-8): Идентификация устройства с системой МОС
Summary: Identification of the device with the MOS
License: GPL
Group: System/Configuration/Other
Url: https://os.mos.ru/git/MOS/mos-inventory

Source: %name-%version.tar

BuildRequires(pre): rpm-build-xdg
BuildRequires(pre): rpm-macros-qt5

BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Svg)

Requires: uds-system-agent
Requires: mos-xdg-core
Requires: coreutils

Obsoletes: mos-inventory < 2.0
Conflicts: mos-inventory < 2.0

%description
Identification of the device with the Moscow operating system in an educational institution

%description -l ru_RU.UTF-8
Идентификация устройства с операционной системой М ОС в образовательном учреждении

%prep
%setup

%build
%qmake_qt5 %name.pro
%make_build

%install
mkdir -p %buildroot%_bindir/
mkdir -p %buildroot%_xdgconfigdir/mos/autostart
mkdir -p %buildroot%_iconsdir/hicolor/scalable/apps

install -p -m755 %name %buildroot%_bindir/
desktop-file-install --dir=%buildroot%_xdgconfigdir/mos/autostart %{name}.desktop
install -p -m644 img/mos-identify.svg %buildroot%_iconsdir/hicolor/scalable/apps/%{name}.svg


%files
%_bindir/%name
%_xdgconfigdir/mos/autostart/%{name}.desktop
%_iconsdir/hicolor/scalable/apps/%{name}.svg


%changelog
* Tue Feb 28 2023 Artem Proskurnev <tema@altlinux.org> 2.1-alt1
- Размер окна и кнопка информации

* Wed Feb 08 2023 Artem Proskurnev <tema@altlinux.org> 2.0-alt1
- New version, new name

* Fri Dec 09 2022 Artem Proskurnev <tema@altlinux.org> 1.6-alt1
- New GUI version

* Wed Dec 07 2022 Artem Proskurnev <tema@altlinux.org> 1.5-alt2
- Change status messages

* Wed Dec 07 2022 Artem Proskurnev <tema@altlinux.org> 1.5-alt1
- Appicon, status message and fix typo

* Thu Dec 01 2022 Artem Proskurnev <tema@altlinux.org> 1.4-alt1
- Corrections based on the code review

* Thu Dec 01 2022 Artem Proskurnev <tema@altlinux.org> 1.3-alt1
- OSMES-343 fix UDS ID, check data

* Thu Nov 24 2022 Artem Proskurnev <tema@altlinux.org> 1.2-alt1
- Task OSMES-343

* Fri Nov 18 2022 Artem Proskurnev <tema@altlinux.org> 1.1-alt1
- Icon and autostart

* Fri Nov 18 2022 Artem Proskurnev <tema@altlinux.org> 1.0-alt2
- Correct requires

* Fri Nov 18 2022 Artem Proskurnev <tema@altlinux.org> 1.0-alt1
- Init spec

